| Conditions | 1 | 
| Total Lines | 59 | 
| Code Lines | 56 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | import React, { Component } from "react" | 
            ||
| 11 |   render() { | 
            ||
| 12 | const data = this.props.data  | 
            ||
| 13 | |||
| 14 | return (  | 
            ||
| 15 | <Layout>  | 
            ||
| 16 | <SEO  | 
            ||
| 17 | lang="nl-BE"  | 
            ||
| 18 | title="Jeugdwerking"  | 
            ||
| 19 | description="Jeugdwerking van KCVV Elewijt"  | 
            ||
| 20 |           path={this.props.location.pathname} | 
            ||
| 21 | />  | 
            ||
| 22 | |||
| 23 | <section className="grid-container site-content">  | 
            ||
| 24 | <div className="grid-x grid-margin-x">  | 
            ||
| 25 |             <section className={"cell large-12 youth_teams__overview"}> | 
            ||
| 26 |               <Link to="/jeugd/u15/" className={"btn btn--arrow"}> | 
            ||
| 27 | U15  | 
            ||
| 28 | </Link>  | 
            ||
| 29 |               <Link to="/jeugd/u13/" className={"btn btn--arrow"}> | 
            ||
| 30 | U13  | 
            ||
| 31 | </Link>  | 
            ||
| 32 |               <Link to="/jeugd/u12/" className={"btn btn--arrow"}> | 
            ||
| 33 | U12  | 
            ||
| 34 | </Link>  | 
            ||
| 35 |               <Link to="/jeugd/u11/" className={"btn btn--arrow"}> | 
            ||
| 36 | U11  | 
            ||
| 37 | </Link>  | 
            ||
| 38 |               <Link to="/jeugd/u10/" className={"btn btn--arrow"}> | 
            ||
| 39 | U10  | 
            ||
| 40 | </Link>  | 
            ||
| 41 |               <Link to="/jeugd/u9/" className={"btn btn--arrow"}> | 
            ||
| 42 | U9  | 
            ||
| 43 | </Link>  | 
            ||
| 44 |               <Link to="/jeugd/u7/" className={"btn btn--arrow"}> | 
            ||
| 45 | U7  | 
            ||
| 46 | </Link>  | 
            ||
| 47 |               <Link to="/jeugd/u6/" className={"btn btn--arrow"}> | 
            ||
| 48 | U6  | 
            ||
| 49 | </Link>  | 
            ||
| 50 | </section>  | 
            ||
| 51 |             <section className={"cell large-12 featured-article"}> | 
            ||
| 52 | <CardImage  | 
            ||
| 53 | title="Leerplannen voor de jeugdwerking"  | 
            ||
| 54 |                 localFile={data.leerplan} | 
            ||
| 55 | link="/news/2019-08-08-leerplan-kcvv-elewijt-jeugd"  | 
            ||
| 56 |                 metadata={false} | 
            ||
| 57 | />  | 
            ||
| 58 | </section>  | 
            ||
| 59 |             <section className={"cell large-12 featured-article"}> | 
            ||
| 60 |               <h2 style={{ marginTop: `${2}rem` }}>Volgende wedstrijden</h2> | 
            ||
| 61 | <MatchesOverview  | 
            ||
| 62 | season="2021"  | 
            ||
| 63 | regnumber="00055"  | 
            ||
| 64 | exclude="['2A', '4E']"  | 
            ||
| 65 | />  | 
            ||
| 66 | </section>  | 
            ||
| 67 | </div>  | 
            ||
| 68 | </section>  | 
            ||
| 69 | </Layout>  | 
            ||
| 70 | )  | 
            ||
| 83 |